// services/auth.js
const { request, requestWithLoading } = require('../utils/request');

function login(params = {}) {
  // params: { code }
  return requestWithLoading({
    url: '/index/login',
    method: 'POST',
    data: params,
    loadingText: '登录中...'
  });
}

module.exports = {
  login
};


